package ltd.itlover.yqblog.entity;


import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.util.Date;




public class BlogListBrief extends DataSupport implements Serializable {

    private Long id;

    private Long blogId;
    /**
     * 博客标题
     */
    private String title;

    /**
     * 文章描述
     */
    private String description;

    /**
     * 阅读量
     */
    private Integer isBrowsedNum;

    /**
     * 点赞量
     */
    private Integer likeNum;

    /**
     * 文章评论数
     */
    private Long commentNum;

    /**
     * 发表时间
     */
    private Date created;

    //博客发表人的用户名
    private String username;


    //封面图
    private String coverImg;

    //分类名
    private String categoryName;

    //博客内容
    private String content;

    //是否被该读者点赞
    private boolean ifLiked;

    //博客主人头像的地址
    private String avatar;

    //是否被该读者收藏
    private boolean ifCollected;

    //收藏量
    private Integer isCollectNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIsBrowsedNum() {
        return isBrowsedNum;
    }

    public void setIsBrowsedNum(Integer isBrowsedNum) {
        this.isBrowsedNum = isBrowsedNum;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Long getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Long commentNum) {
        this.commentNum = commentNum;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean getIfLiked() {
        return ifLiked;
    }

    public void setIfLiked(boolean ifLiked) {
        this.ifLiked = ifLiked;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public boolean getIfCollected() {
        return ifCollected;
    }

    public void setIfCollected(boolean ifCollected) {
        this.ifCollected = ifCollected;
    }

    public Integer getIsCollectNum() {
        return isCollectNum;
    }

    public void setIsCollectNum(Integer isCollectNum) {
        this.isCollectNum = isCollectNum;
    }

    @Override
    public String toString() {
        return "BlogListBrief{" +
                "id=" + id +
                ", blogId=" + blogId +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", isBrowsedNum=" + isBrowsedNum +
                ", likeNum=" + likeNum +
                ", commentNum=" + commentNum +
                ", created=" + created +
                ", username='" + username + '\'' +
                ", coverImg='" + coverImg + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", content='" + content + '\'' +
                ", ifLiked=" + ifLiked +
                ", avatar='" + avatar + '\'' +
                ", ifCollected=" + ifCollected +
                ", isCollectNum=" + isCollectNum +
                '}';
    }

    public boolean isIfLiked() {
        return ifLiked;
    }

    public boolean isIfCollected() {
        return ifCollected;
    }
}
